package cn.kgc.ssm.controller;

import cn.kgc.ssm.commons.ResponseResult;
import cn.kgc.ssm.service.EchartsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2024/5/21
 * @description   数据可视化的控制层
 */
@RestController
@RequestMapping("echarts")
public class EchartsController {
    @Resource
    private EchartsService echartsService;

    @RequestMapping("panel")
    public ResponseResult   panelData(){
      return  echartsService.panelData();
    }

    // 折线图数据接口
    @RequestMapping("line")
    public ResponseResult   lineData(){
        return  echartsService.lineData();
    }

}
